package classexercise;

public class Circle1 extends Shape {
	private double radius=1.0;
	
	public Circle1(){}
	public Circle1(double radius){
		this.radius=radius;
	}
	public Circle1(double radius,String color,boolean filled){
		   super(color,filled);
		   this.radius=radius;
	}
	public double getRadius() {
		return radius;
	}
	public void setRadius(double radius) {
		this.radius = radius;
	}
	public double getArea(){
		  double area=Math.PI*radius*radius;
		  return area;
	}
	public double getPerimeter(){
		  double perimeter=2*Math.PI*radius;
		  return perimeter;
	}
	public String toString() {
		return "Circle1 [radius=" + radius + "]";
	}
	
	
	

}
